Skip to main content

All Questions

Tagged with
1vote
1answer
175views

How to automate the process to open 3 shells and run 3 commands?

I set up something so that I'd open up 3 shells and run the programs one by one: cd foo/bar ./foo.sh cd foo/bar node bar.js cd foo/bar ruby foobar.rb However, since it is time consuming, so I wrote ...
Stefanie Gauss's user avatar
0votes
1answer
145views

emacs path replacement

I had a old version of emacs, I removed it and install a new one. For this new install I got a gz file, and compiled in my laptop. After a successful installation I got a small situation: If I type: ...
Rafa's user avatar
  • 151
1vote
1answer
177views

Make Emacs load .bashrc / .bash_profile when started by GUI

I wrote LD_LIBRARY_PATH both in .bashrc and .bash_profile. However, if I started emacs in terminal using emacs, LD_LIBRARY_PATH is shown in getenv. If I started it using GUI (installed from apt-get), ...
spacegoing's user avatar
0votes
1answer
478views

VISUAL and EDITOR variables aren't defined

I'm using CentOs 6 and learning about command line editing modes. The VISUAL and EDITOR variables aren't defined in my system and printenv or env commands don't show them. My X terminal starts in ...
Yalda's user avatar
17votes
3answers
7kviews

How to set and determine the command-line editing mode of Bash?

How to set the vi or emacs command line editing mode the Bash AND how to determine which mode is currently set?
Blcknx's user avatar
1vote
1answer
154views

Script for converting .org to .xml

I want to convert tree written in .org file to some XML code to generate graphic tree from it later (for example loading it to www.draw.io webpage). In order to do this I need a bash script which will ...
micholeodon's user avatar
0votes
0answers
561views

How to set environment variables to path so it can be read from GUI and command line from the same program?

I installed texlive and I want to add it as an environment variable to my Path so that Emacs AucTeX can read it when I start emacs from the GUI or from the command line. So far I've read that emacs ...
bit's user avatar
  • 1,166
2votes
2answers
2kviews

How do I make a working emacs alias function?

In an attempt to go around an annoying aspect of tmux, I have the following code in my .bashrc file: alias emcs="command emacs" # Fix emacs in tmux emacs () { if [ $TERM != "xterm" ] then ...
Ness's user avatar
  • 143
1vote
1answer
228views

Emacs installation package error

I'm trying to install emacs on my debian jessie, but I have the following package error, thinkpad-keith@debian-keith:~$ sudo apt install emacs Reading package lists... Done Building dependency tree ...
Keith's user avatar
0votes
3answers
2kviews

Command not found error - bash

$ which sudo emacs /usr/bin/sudo /home/user1/local_build/bin/emacs $ sudo emacs /etc/apache2/sites-available/000-default.conf sudo: emacs: command not found $ emacs /etc/apache2/sites-available/...
overexchange's user avatar
1vote
1answer
550views

How to change/fix the v command in less using a shell profile?

I am beginning to learn bash and emacs and wanted to change my default editor from vi to emacs. After going through many great questions throughout different stackexchange communities, I have not ...
Sleepy 17's user avatar
2votes
1answer
503views

Org-Mode doesn't export to pdf

I am using emacs with org mode to take notes. I read that org mode can export to pdf whene you type C-c C-e lp. When I type this in, *Org PDF LaTeX Output* buffer says : /bin/bash: pdflatex: command ...
sted's user avatar
9votes
5answers
1kviews

How to set bash readline to vi mode automatically upon login to a system?

My team is responsible for thousands of Linux/Unix machines, so naturally the root account is "shared" amongst the admins. I prefer vi mode, others prefer emacs mode. How can I set bash's readline ...
Patrick's user avatar
0votes
1answer
32views

How to compute the numbers of the form 5i+1, i between 1 and 20 with emacs?

First off, I'm not only new in emacs, but in unix in general. I've tried writing: #!/bin/bash for i in {1..20} do j=(5*$i)+1 echo "$j" done The result: (5*1)+1 (5*2)+1 (5*3)+1 (5*4)+1 (...
Diego's user avatar
2votes
1answer
213views

Is bash command line interpreter implemented on emacs?

I'm investigating the relationship between bash and emacs shorcuts. Someone told me that the reason why they're similar is that bash uses emacs as its command line interpreter. However, I haven't ...
user1868607's user avatar

153050per page
close